﻿using System;
using Honeycomb.Protocol;

namespace Honeycomb.Core.Client
{
    public class TaskExecutionResult
    {
        /// <summary>
        /// The task instance.
        /// </summary>
        public TaskBase Task { get; set; }

        /// <summary>
        /// The result of executin the task instance.
        /// </summary>
        public object Result { get; set; }

        /// <summary>
        /// Any exception thrown while executing the task instance.
        /// </summary>
        public Exception Exception { get; set; }
    }
}